Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RPC call and dev command for Anoma.Protobuf.IndexerService.ListUnrevealedCommits #3239

Merged
merged 4 commits into from
Dec 7, 2024

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Dec 6, 2024

This PR adds support for Anoma.Protobuf.IndexerService.ListUnrevealedCommits via the CLI:

$ juvix dev anoma indexer list-unrevealed-commits --help
Usage: juvix dev anoma indexer list-unrevealed-commits [-o|--output OUTPUT_FILE]

  Call the Anoma.Protobuf.IndexerService.ListUnrevealedCommits endpoint

Available options:
  -o,--output OUTPUT_FILE  Path to output file
  -h,--help                Show this help text

It also adds a test suite for Anoma client transaction submissions / verification.

The Swap example using the Resource Machine API is tested with the following flow:

  1. Compile the Swap example
  2. Submit the compiled output to the prove endpoint - capture the expected commitment in a trace
  3. Submit the proved output to add-transaction
  4. Poll ListUnrevealedCommits until a commit appears and compare it with the commitment we captured in 2.

@paulcadman paulcadman added this to the 0.6.9 milestone Dec 6, 2024
@paulcadman paulcadman self-assigned this Dec 6, 2024
@paulcadman paulcadman force-pushed the list-unrevealed-commits branch from 5d83756 to 3c40bbf Compare December 6, 2024 12:35
@paulcadman paulcadman force-pushed the list-unrevealed-commits branch from b990aba to 9cdc97c Compare December 6, 2024 18:56
@paulcadman paulcadman marked this pull request as ready for review December 6, 2024 19:01
@lukaszcz lukaszcz merged commit 8272ee3 into main Dec 7, 2024
4 checks passed
@lukaszcz lukaszcz deleted the list-unrevealed-commits branch December 7, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants